<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:p="http://primefaces.prime.com.tr/ui"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Facelet Title</title>
    </h:head>
    <h:body>
        <h:form>
            <p:growl id="growl2" showDetail="true"/>
            <p:dataTable var="feedback" value="#{admin.showFeed()}" paginator="true" scrollable="false" rows="10" id="dt"  
                         selectionMode="single"  
                         onRowSelectUpdate="result growl2"  
                         onRowUnselectUpdate="growl2">  

                <p:column style="width: 150px">  
                    <f:facet name="header">  
                        <h:outputText value="User Name: " />  
                    </f:facet>  
                    <h:outputText value="#{feedback.uid}" />  
                </p:column>  

                <p:column style="width: 150px">  
                    <f:facet name="header">  
                        <h:outputText value="Content: " />  
                    </f:facet>  
                    <h:outputText value="#{feedback.content}" />  
                </p:column>  

                <p:column style="width: 150px">  
                    <f:facet name="header">  
                        <h:outputText value="Feedback Type:  " />  
                    </f:facet>  
                    <h:outputText value="#{feedback.type}" />  
                </p:column>  
            </p:dataTable>

        </h:form>
    </h:body>
</html>

